package com.yangwei.examination.teacher.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "correct_answer_paper")
public class CorrectAnswerPaper {
    /**
     * 批改试卷主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 批改学生答卷的id
     */
    @TableField(value = "answer_paper_id")
    private Long answerPaperId;

    /**
     * 批改老师的id
     */
    @TableField(value = "teacher_id")
    private Long teacherId;

    /**
     * 批改老师批改完成的时间
     */
    @TableField(value = "submit_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;

    @TableField(exist = false)
    private List<CorrectAnswerPaperInfo> correctAnswerPaperInfoList;   //用于导出csv

}